﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace wp7Project
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            abc a = new abc();
            List<abc> lt = new List<abc>();
          
            listbox1.ItemsSource = lt;
            a.test1 = "第一行";
            a.test2 = "2";
            a.test3 = "3";
            a.test4 = "4";
            lt.Add(a);

            abc a1 = new abc();
            a1.test1 = "第二行";
            a1.test2 = "12";
            a1.test3 = "13";
            a1.test4 = "14";
            lt.Add(a1);


            abc a2 = new abc();
            a2.test1 = "第三行";
            a2.test2 = "22";
            a2.test3 = "23";
            a2.test4 = "24";
            lt.Add(a2);


            abc a3 = new abc();
            a3.test1 = "第四行";
            a3.test2 = "32";
            a3.test3 = "33";
            a3.test4 = "34";
            lt.Add(a3);


        }

        
        public class abc
        {
            public string test1 {get;set;}
            public string test2 {get;set;}
            public string test3 {get;set;}
            public string test4 {get;set;}

        }
    }
}